<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${msg}" style="color: red"></p>
<form th:action="@{login}" action="login" method="post">
    <p>用户名：  <input name="username" type="text"></p>
    <p>密码：    <input name="password" type="password"></p>
    <button type="submit">登录</button>
</form>
</body>
</html>